package com.project.config;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Component
public class SysConfig implements WebMvcConfigurer {

    //把restTemplate 交给spring
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
